package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    //查询所有用户
    Page<User> findAll(Map<String,Object> searchMap);

    //重置密码
    void resetPassword(Map<String, Object> userVO);

    //编辑用户
    void edit(Map<String, Object> userVO);

    //删除用户
    void delete(Map<String, Object> userVO);

    User findByUserName(String userName);

    //修改密码
    Integer updatePwd(String s, String oldPwd, String newPwd);

    boolean save(Map userVO);



    void update(User user);

    //用户编辑信息
    void editUser(Map<String, Object> userVO);

    //获取用户信息
    User findById(String uid);
}
